home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / SecalDemo / Inc / dos / notify.inc < prev    next >
Text File  |  1998-06-24  |  934b  |  54 lines

  1. include "inc/exec/types.inc";
  2. include "inc/exec/ports.inc";
  3. include "inc/exec/tasks.inc";
  4.  
  5. def NOTIFY_CLASS = $40000000;
  6.  
  7. def NOTIFY_CODE = $1234;
  8.  
  9. struct NotifyMessage is
  10.   nm_ExecMessage:Message;
  11.   nm_Class:ulong;
  12.   nm_Code:uword;
  13.   nm_NReq:ulong;
  14.   nm_DoNotTouch:ulong;
  15.   nm_DoNotTouch2:ulong;
  16. ;
  17.  
  18. struct NotifyRequest is
  19.   nr_Name:ulong;
  20.   nr_FullName:ulong;
  21.   nr_UserData:ulong;
  22.   nr_Flags:ulong;
  23.   nr_stuff:union is
  24.     nr_Msg:struct is
  25.       nr_Port:ulong;
  26.     ;
  27.     nr_Signal:struct is
  28.       nr_Task:ulong;
  29.       nr_SignalNum:ubyte;
  30.       nr_pad[3]:ubyte;
  31.     ;
  32.   ;
  33.   nr_Reserved[4]:ulong;
  34.   nr_MsgCount:ulong;
  35.   nr_Handler:ulong;
  36. ;
  37.  
  38. def NRF_SEND_MESSAGE = 1;
  39. def NRF_SEND_SIGNAL = 2;
  40. def NRF_WAIT_REPLY = 8;
  41. def NRF_NOTIFY_INITIAL = 16;
  42.  
  43. def NRF_MAGIC = $80000000;
  44.  
  45. def NRB_SEND_MESSAGE = 0;
  46. def NRB_SEND_SIGNAL = 1;
  47. def NRB_WAIT_REPLY = 3;
  48. def NRB_NOTIFY_INITIAL = 4;
  49.  
  50. def NRB_MAGIC = 31;
  51.  
  52. def NR_HANDLER_FLAGS = $ffff0000;
  53.  
  54.